﻿$(function myfunction() {
    var dlgaaa = $('#DivAreaShow').dialog({
        draggable: true,
        resizable: true,
        closed: true,
        show: 'Transfer',
        hide: 'Transfer',
        autoOpen: false,
        minHeight: 100,
        minwidth: 100
    });
});
//显示区域
function ShowAreaDiv(title, width, height) {
    // $('#IframeSysiframe', window.top.document).load(url);
    $document = $('#DivAreaShow');
    try {
        $document.dialog({
            title: title,
            width: width,
            height: height
        });
        $document.dialog('open');
    } catch (e) {
        return;
    }
}
//置空
function ClaerArea() {
    $("input[name$='HiddenAreaId']").val("");
    $("input[name$='HiddenLevelNo']").val("");
    $("input[name$='HiddenFatherId']").val("");
    $("input[name$='txtAreaName']").val("");
    $('#DivAreaShow').dialog("close");
}
//保存
function SaveArea() {
    $("input[name$='txtAreaName']").val($("input[name$='HiddenAreaName']").val());
    $('#DivAreaShow').dialog("close");
}
//取消
function CancelArea() {
    $('#DivAreaShow').dialog("close");
}